import request from '@/utils/request'

export default {

    getOpenList(cId) {
        return request({
            url:`/comp/getOpenList/${cId}`,
            method:'get',
          })
    },

    addOpen(open) {
        return request({
            url:`/comp/addOpen`,
            method:'post',
            data:open
          })
    },

    deleteOpen(id) {
        return request({
            url:`/comp/deleteOpen/${id}`,
            method:'get',
          })       
    },

    getStyleById(id) {
        return request({
            url:`/comp/getStyle/${id}`,
            method:'get',
          })  
    },

    updateStyle(formData) {
        return request({
            url:`/comp/updateStyle`,
            method:'post',
            data:formData
          })        
    },

    getAllStyle() {
        return request({
            url:`/comp/styleList`,
            method:'get',
          })    
    }


}

